package com.example.famhealing.util;

import java.util.List;

import org.w3c.dom.Comment;

import android.content.Context;
import android.os.UserManager;

import com.example.db.user.user;

public final class Configuration {
	private static Configuration uniqueConfigure = null;
	private static user user = null;
	private static List<FamhealingContacts> contactsList = null;
	private Configuration (Context context){		
		
	}	

	public static Configuration getInstance(Context context, user user){
		if(uniqueConfigure == null){
			uniqueConfigure = new Configuration(context);
			
		}
		return uniqueConfigure;
	}
	
	public void updateConfigure(){ // configure에 있는 attribute들을 sqlite에 업데이트
		
	}
	public void setUser(user user){
		this.user = user;
	}
	
	public user getUser(){
		return user;
	}	
	
	
	
	public static List<FamhealingContacts> getContactsList() {
		return contactsList;
	}

	public static void setContactsList(List<FamhealingContacts> contactsList) {
		Configuration.contactsList = contactsList;
	}

/*	public void updateExp(){
		int currentExp = user.getExp()+1;
		if(currentExp == 100){
			currentExp = 0;
			int currentLevel = user.getLevel() + 1;			
			user.setLevel(currentLevel);
		}
		user.setExp(currentExp);
	}*/
	
	public void updateToServer(){
		
	}
	
}
